
package com.be.beadmin.quality.repository;

import com.be.beadmin.quality.entity.InspectionMasterValue;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author zjm
* @date 2023-05-28
**/
public interface InspectionMasterValueRepository extends JpaRepository<InspectionMasterValue, String>, JpaSpecificationExecutor<InspectionMasterValue> {

    InspectionMasterValue findInspectionMasterValueByIdAndDelete(String id, Integer delete);

    InspectionMasterValue findInspectionMasterValueByInspectionTaskIdAndTemplateCustomItemIdAndDelete(String inspectionTaskId,String templateInspectionItemId, Integer delete);
    List<InspectionMasterValue> findInspectionMasterValueByTemplateCustomItemIdAndDelete(String templateCustomItemId, Integer delete);

    List<InspectionMasterValue> findInspectionMasterValuesByInspectionTaskIdAndDelete(String inspectionTaskId, Integer delete);


    InspectionMasterValue findInspectionMasterValueById(String id);

}